package org.example.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 班级信息表
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("classes")
public class Classes implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 班级ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属学校ID
     */
    private Integer schoolId;

    /**
     * 年级 (例如: 1, 2, 3)
     */
    private Integer grade;

    /**
     * 班级名称 (例如: 一班, 二班)
     */
    private String className;

    /**
     * 班主任的用户ID
     */
    private Long headTeacherId;

    private LocalDateTime createdAt;


}
